package com.jzr.mybatis.generator;

/*
t_allergy,t_app_version,t_bed,t_care_label,t_charge,
t_dept,t_device,t_doctor,t_doctor_order,
t_exam,t_fee,t_hospital,
t_inspect,t_inspect_result,t_media,
t_nurse,t_patient,t_patient_care_label_ref,
t_patient_extra,t_patient_view,
t_room,t_shift_plan,t_shift_type,
t_user,t_vital_sign,t_work_plan,v_bed,
t_food_menu,t_food_order,t_food_order_detail
 */

public class BedsideDb1CodeGenerator {
    public static void main(String[] args) {
        MyConfig myConfig = new MyConfig() {{
            dbUrl = "jdbc:mysql://192.168.1.9:3306/jzr_medical?useUnicode=true&useSSL=false&autoReconnect=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8";
            dbDriverName = "com.mysql.cj.jdbc.Driver";
            dbUsername = "root";
            dbPassword = "Mff@2099";
            subProjectPath = "bedside-service";
            packagePath = "com.jzr.bedside";
            modelName = "db1";
            tableNames = InputHelper.scanner(subProjectPath+"表名，多个英文逗号分割");
            enableMapper = true;
            enableService = false;
            enableController = false;
            enableOther = true;
            fileOverride = true;
            enableGetId = 1;  //0:不生成getId, 1:生成getId
            isSuperEntityGeneric = 0; //继承类是否是泛型
            superEntityClass = null;
        }};

        GeneratorHelper.generate(myConfig);
    }
}
